10.03.2015, 23:22
Hi guys, I have this code for remove the driving license:
I did the command but am new to pawn. I want the duration of the function is 10 minutes and at the end of 10 minutes will automatically return the license to the player. No how, need help please. regards
PHP код:
new pid;
new str[68], pName[MAX_PLAYER_NAME],Float:x, Float:y, Float:z;
GetPlayerName(pid, pName, sizeof(pName));
if(sscanf(params, "u", pid)) return SendClientMessage(playerid, -1, "Usage: /nodriving [id]");
if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: Player is not online.");
RemovePlayerFromVehicle(pid);
format(str, sizeof(str), "%s loses her driving license", pName);
SendClientMessageToAll(RED, str);
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z);
nocar[pid] = true;
}
return true;