Zcmd Question
#10

Ok these is 1000th topic with same problem

Update fucking sscanf plugin !!!
pawn Код:
CMD:Slap(playerid,params[])
{
    new id;
    if(sscanf(params,"u",id)) return Msg(playerid,1,"Usage: /slap [id] ");
    if(!IsPlayerConnected(id)) return Msg(playerid,0,"Player Not FOund");
    SetPlayerHealth(id,0.0);
    PlayerPlaySound(1149,0,0,0,0);
    return 1;
}
You dont need else there cos it will check is player not connected if sscanf fail (you dont input id or name)
Reply


Messages In This Thread
Zcmd Question - by CSSI - 05.10.2011, 14:56
Re: Zcmd Question - by Wesley221 - 05.10.2011, 14:56
Re: Zcmd Question - by Jafet_Macario - 05.10.2011, 14:57
Re: Zcmd Question - by CSSI - 05.10.2011, 14:58
Re: Zcmd Question - by Jafet_Macario - 05.10.2011, 14:59
Re: Zcmd Question - by Libra_PL - 05.10.2011, 15:02
Re: Zcmd Question - by Max_Coldheart - 05.10.2011, 15:03
Re: Zcmd Question - by Jafet_Macario - 05.10.2011, 15:07
Re: Zcmd Question - by CSSI - 05.10.2011, 15:08
Re: Zcmd Question - by DRIFT_HUNTER - 05.10.2011, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)