Convert to zcmd?
#1

Hello,

I need this line to be able to be used in a zcmd script:
PHP код:
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == || PlayerInfo[playerid][pAdmin] >= 1
This is what i need it for:

PHP код:
CMD:operation(playeridparams[])
{
    new 
id;
    if(
sscanf(params"d"id)) return SendClientMessage(playerid0xffffffff"[Usage]: /operation <playerid>");
    if(
gTeam[playerid] != TEAM_MEDIC) return SendClientMessage(playerid0xffffffff"You're not medic!");
    if(
id == INVALID_PLAYER_ID) return SendClientMessage(playerid0xffffffff"Invalid playerid!");
    if(!
Injured[id]) return SendClientMessage(playerid0xffffffff"This person isn't injured!");
    
TogglePlayerControllable(id0);
    
TogglePlayerControllable(playerid0);
    
SendClientMessage(id0xffffffff"A medic started to operate you!");
    
SendClientMessage(playerid0xffffffff"You started an operation!");
    
SetTimerEx("OperationFinish"1800000"dd"playeridid);
    return 
1;

Thx in advance
Reply


Messages In This Thread
Convert to zcmd? - by remyguys - 27.11.2011, 16:26
Re: Convert to zcmd? - by Steven82 - 27.11.2011, 16:34
Re: Convert to zcmd? - by remyguys - 27.11.2011, 16:53
Re: Convert to zcmd? - by Kostas' - 27.11.2011, 16:54
Re: Convert to zcmd? - by remyguys - 27.11.2011, 16:56
Re: Convert to zcmd? - by Kostas' - 27.11.2011, 16:57
Re: Convert to zcmd? - by remyguys - 27.11.2011, 16:58
Re: Convert to zcmd? - by remyguys - 27.11.2011, 17:04
Re: Convert to zcmd? - by Kostas' - 27.11.2011, 17:05
Re: Convert to zcmd? - by remyguys - 27.11.2011, 17:06

Forum Jump:


Users browsing this thread: 2 Guest(s)