Help please.
#1

Hi

i want a FS with, when i type in my server /lock (for lock the vehicle)

in the vehicle says 'Vehicle locked by: (name)', and nobody can enter.
Reply
#2

Search the WIKI next time.

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext,"/lock",true)) 
    	{
        		if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFAA,"You have to be inside a vehicle.");
        		for(new i=0; i < MAX_PLAYERS; i++)
        		{
            			if(i == playerid) continue;
            			SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,1);
        		}
        		return 1;
    	}
    	return 0;
}
Reply
#3

Ok, thx i'll try
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)