11.02.2014, 18:30
I'm trying to make this simple, so while the code is elementary, all I need it to do is prevent other players from getting into the "gcars", yet this script causes ALL server cars to be unable to enter (except by "Jason_Budley" (server owner, me))
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new G_Check=GetPlayerVehicleID(playerid);
if (G_Check==gcar||gcar2||gcar3||gcar4||gcar5||gcar6||gcar7||gcar8||gcar9)
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if (strcmp(PlayerName,"Jason_Budley",true))
{
ClearAnimations(playerid);
return 1;
}
}
else
{
return 1;
}
return 1;
}


