13.12.2014, 13:35
Guys i want to make something first here is the command
And i want to add this
But not only one id i want to add 4 or 5 how can i make this ??
PHP код:
CMD:arrest(playerid,params[])
{
new time,reason[100],str1[256];
new str[256];
if(PInfo[playerid][pCop] >= 3)
if(sscanf(params,"dds",id,time,reason)) return SendClientMessage(playerid, COLOR_GREY, "-- Server: {USAGE} /arrest <playerid> <time> <reason>");
if (!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_GREY, "-- Server: {ERROR} Player is not connected.");
if(IsPlayerInRangeOfPoint(playerid,3.0,268.3070,77.8721,1001.0391,359.2793))
format(str, sizeof(str), "Officer %s has arrested %s for %d minutes; RP Reason: %s",PlayerName(playerid), PlayerName(id), time, reason);
SendClientMessageToAll(COLOR_GREY,str);
SetPlayerInterior(id, 6);
SetPlayerVirtualWorld(id, 0);
SetPlayerFacingAngle(id, 360.0);
SetPlayerPos(id,264.3290,82.2896,1001.0391);
SetPlayerHealth(id, 100.0);
ResetPlayerWeapons(id);
SetTimerEx("Unjail",time*60000, false, "i", id);
return 1;
}
PHP код:
if( GetPlayerSkin (playerid) == id) {