/sethp, /setarmour not working
#10

Download the latest version of sscanf from:
https://sampforum.blast.hk/showthread.php?tid=570927

PHP код:
CMD:sethp(playerid,params[])
{
    new 
healthtargetid;
    if(
PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, -1"You are not authorized to use this command!");
    if(
sscanf(params"ui"targetidhealth)) return SendClientMessage(playeridCOLOR_GRAD1"USAGE: /sethp [playerid] [health]");
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1"Player is not connected.");
    
SetPlayerHealth(targetidhealth);
    return 
1;
}
CMD:setarmour(playerid,params[])
{
    new 
armourtargetid;
    if(
PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, -1"You are not authorized to use this command!");
    if(
sscanf(params"ui"targetidhealth)) return SendClientMessage(playeridCOLOR_GRAD1"USAGE: /setarmour [playerid] [armour]");
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1"Player is not connected.");
    
SetPlayerArmour(targetidarmour);
    return 
1;


EDIT: Too Late :))
Reply


Messages In This Thread
/sethp, /setarmour not working - by LeeXx - 28.03.2017, 20:10
Re: /sethp, /setarmour not working - by Kane - 28.03.2017, 20:35
Re: /sethp, /setarmour not working - by ISmokezU - 28.03.2017, 20:41
Re: /sethp, /setarmour not working - by jasperschellekens - 28.03.2017, 20:58
Re: /sethp, /setarmour not working - by LeeXx - 29.03.2017, 07:31
Re: /sethp, /setarmour not working - by Tamer - 29.03.2017, 07:53
Re: /sethp, /setarmour not working - by LeeXx - 29.03.2017, 08:29
Re: /sethp, /setarmour not working - by jlalt - 29.03.2017, 08:33
Re: /sethp, /setarmour not working - by LeeXx - 29.03.2017, 09:06
Re: /sethp, /setarmour not working - by Juvanii - 29.03.2017, 09:09
Re: /sethp, /setarmour not working - by LeeXx - 29.03.2017, 09:27

Forum Jump:


Users browsing this thread: 1 Guest(s)