Hallo leute also ich habe das gescriptet:
SetGameModeText("StreetLive");
if(IsPlayerAdmin(playerid))
{
//Spieler als Admin eingelogt:
AddPlayerClass(0,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(1,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(2,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(3,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(4,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(5,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(6,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(7,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(8,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(8,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(9,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(10,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(11,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(12,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(13,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(14,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
AddPlayerClass(15,1446.9246,-2286.7517,13.5469,82.1560,0,0,4,0,0,0); // position
return 1;
}
else
{
//Spieler Norm. Eingelogt:
AddPlayerClass(0,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(1,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(2,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(3,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(4,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(5,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(6,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(7,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(8,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(8,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(9,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(10,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(11,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(12,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(13,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(14,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
AddPlayerClass(15,1685.7640,-2333.5234,13.5469,0.8336,0,0,4,0,0,0); // position
return 1;
}
//Bone
CreateVehicle(513,291.1346,2535.5850,17.3778,180.2974,21,36,100) ; // Stuntplane
CreateVehicle(512,324.4324,2535.6506,17.5121,181.8785,89,91,100) ; // Cropduster
CreateVehicle(476,403.6754,2456.9727,16.7825,357.7751,15,123,100) ; // Rustler
CreateVehicle(417,364.4265,2535.2258,16.7616,143.5451,0,0,100) ; // Leviathan
CreateVehicle(586,423.4558,2541.1025,15.9887,339.6539,10,1,100) ; // Wayfarer
CreateVehicle(543,385.2093,2603.5049,16.3080,192.7106,67,8,100) ; // Sadler
...Da kommen dann die ganzen Autos im Script was kommisch ist das Warning zeigt nur das erste Auto im script an Z. 55???
und das bei:
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerAdmin(playerid))
{
//Admins Spawn
SetPlayerPos(playerid,1446.9246,-2286.7517,13.5469); // position
SetPlayerFacingAngle(playerid,82.1560); // position
SetPlayerCameraPos(playerid,1445.0867,-2286.6812,13.5469); // camera
SetPlayerCameraLookAt(playerid,1446.9246,-2286.7517,13.5469); // position
return 1;
}else{
//Norm. Spieler Spawn
SetPlayerPos(playerid,1685.7640,-2333.5234,13.5469); // position
SetPlayerFacingAngle(playerid,0.8336); // position
SetPlayerCameraPos(playerid,1685.7443,-2331.3435,13.5469); // camera
SetPlayerCameraLookAt(playerid,1685.7640,-2333.5234,13.5469); // position
return 1;
}
}
so eigentlich sollte wenn man sich vor dem ingame als admin mit rcon passwort einlogt das er nicht wie die normalen Spieler am los santos flughafen spawnt sondern wo anders!
jretz bekomme ich diese Errors:
so jetz bekomme ich diese Errors:
E:\GTA\StreetGangz\gamemodes\StreetLive.pwn(3) : error 017: undefined symbol "playerid"
E:\GTA\StreetGangz\gamemodes\StreetLive.pwn(50) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
So jetz die frage wie bekomme ich den Error und das die Admins halt wo anders Spawnen...