Brackets fail i guess.
#2

pawn Код:
CMD:slenderkidnap(playerid,params[])
{
    {
        if((GetPlayerScore(playerid) > 150) return SendClientMessage(playerid, COLOR_NAVY, "You need 150 score to be the SlenderMan"); //If the player has less than 150 score, he will get this message
        return 1;
    }
        new Float:X,Float:Y,Float:Z,Float:Angle
        new id;
        if (sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /slenderkidnap [id]"); //if the ID isn't added, then it will show the usage.
        if(!IsPlayerConnected(targetid) || targetid == playerid) return SendClientMessage(playerid, COLOR_ORANGE, "This player is offline, or you're trying to kidnap yourself."); //If the player ID isn't "valid".
        if(!IsPlayerInRangeOfPoint(playerid,5,X,Y,Z); //if Slenderman is too far from the player (I bet i've failed here)
        {
        SendClientMessage(playerid, COLOR_RED, "You're too far from the target!");
        }
        if(IsPlayerInRangeOfPoint(playerid,5,X,Y,Z); //If he is in the range of the player, then the following things will happen.
        {
        SendClientMessage(id, COLOR_NAVY, "You've got kidnapped!"); //Kidnapped will get this.
        SetPlayerInterior(id, 1); //His interior will be set to the meat factory
        SetPlayerPos(id, 963.418762,2108.292480,1011.030273); //And the pos.
        }
    return 1;
}
try this
Reply


Messages In This Thread
Brackets fail i guess. - by Kyance - 28.09.2013, 16:23
Re: Brackets fail i guess. - by AnonMKD - 28.09.2013, 16:29
Re: Brackets fail i guess. - by Konstantinos - 28.09.2013, 16:35
Re: Brackets fail i guess. - by Kyance - 28.09.2013, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)