Lock vehicle for everyone when owner is not online... Help please.
#8

Quote:
Originally Posted by lrZ^ aka LarzI
pawn Код:
new pn[24];
for(new i=0; i<MAX_PLAYERS; i++)
{
    GetPlayerName(i, pn, 24);
    if(strcmp(pn, "YourNameInGame"))
        SetVehicleParamsForPlayer(vehicleid, i, 0, 1); //Remember to change "YourNameInGame" and vehicleid
}
Put that inside OnGameModeInit
I don't see how that can lock the cars for everyone, if My InGame name is not online... =/
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)