#1

Guys i want to make something first here is the command
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(playeridCOLOR_GREY"-- Server: {USAGE} /arrest <playerid> <time> <reason>");
        if (!
IsPlayerConnected(id)) return SendClientMessage(playeridCOLOR_GREY"-- Server: {ERROR} Player is not connected.");
        if(
IsPlayerInRangeOfPoint(playerid,3.0,268.3070,77.8721,1001.0391,359.2793))
        
format(strsizeof(str), "Officer %s has arrested %s for %d minutes; RP Reason: %s",PlayerName(playerid), PlayerName(id), timereason);
        
SendClientMessageToAll(COLOR_GREY,str);
        
SetPlayerInterior(id6);
            
SetPlayerVirtualWorld(id0);
        
SetPlayerFacingAngle(id360.0);
        
SetPlayerPos(id,264.3290,82.2896,1001.0391);
        
SetPlayerHealth(id100.0);
        
ResetPlayerWeapons(id);
        
SetTimerEx("Unjail",time*60000false"i"id);
        return 
1;

And i want to add this
PHP код:
if( GetPlayerSkin (playerid) == id) { 
But not only one id i want to add 4 or 5 how can i make this ??
Reply


Messages In This Thread
Skin - by nezo2001 - 13.12.2014, 13:35
Re: Skin - by Kaperstone - 13.12.2014, 13:41
Re: Skin - by nezo2001 - 13.12.2014, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)