25.08.2011, 13:16
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) == 516)
{
if(gTeam[playerid] == TEAM_DRIVERS)
{
GameTextForPlayer(playerid, "~w~ U entered A~y~ Lvl 3~w~ vehicle. Please drive to the ~r~ Red marker~w~, located in front of the club.", 3000, 4);
startworkpickup = CreatePickup(1317, 14, 670.15740966797,-12752222900391,13467164993286, -1); //also, when a player enters this pickup, (if pickupid= blahblah, and then my code, it doesn't work either... but that's not in this callback
}
else
{
SendClientMessage(playerid,COLOR_ERROR,"Only Drivers can use this vehicle");
RemovePlayerFromVehicle(playerid);
}
}
}