Hey liebe user,
Ist hier irgendwas falsch:
public OnPlayerSpawn(playerid)
{
if(!IsPlayerNPC(playerid)) return 0;
new playername[64];
GetPlayerName(playerid,playername,64);
if(!strcmp(playername,"Mike",true)) {
PutPlayerInVehicle(playerid, Coach1, 0);
}
else if(!strcmp(playername,"Tom",true)) {
PutPlayerInVehicle(playerid, Coach2, 0);
}
else if(!strcmp(playername,"Andrew",true)) {
PutPlayerInVehicle(playerid, Barracks, 0);
}
else if(!strcmp(playername,"Johnson",true)) {
PutPlayerInVehicle(playerid, LSPDcar, 0);
}
else if(!strcmp(playername,"Anderson",true)) {
PutPlayerInVehicle(playerid, Ambulance, 0);
}
else if(!strcmp(playername,"Mathew",true)) {
PutPlayerInVehicle(playerid, Ambulanceheli, 0);
}
else if(!strcmp(playername,"Davidson",true)) {
PutPlayerInVehicle(playerid, Firetruck, 0);
}
else if(!strcmp(playername,"Moralles",true)) {
PutPlayerInVehicle(playerid, Hunter, 0);
}
else if(!strcmp(playername,"Yards",true)) {
PutPlayerInVehicle(playerid, PDbike, 0);
}
else if(!strcmp(playername,"Kelroy",true)) {
PutPlayerInVehicle(playerid, Train, 0);
}
else if(!strcmp(playername,"Sarah",true)) {
PutPlayerInVehicle(playerid, Infernus, 0);
}
else if(!strcmp(playername,"Michael",true)) {
PutPlayerInVehicle(playerid, Sultan, 0);
}
else if(!strcmp(playername,"Roy",true)) {
PutPlayerInVehicle(playerid, AT400, 0);
}
return 1;
}
sie spawnen, aber nicht im Auto, wenn ich goto mache sind die in der Luft ? Fehlt da was ?
Ich bitte um Hilfe.
MfG
Enes