SAMP Command Returns Unkown Command
#1

Код:
dcmd_gethere(playerid,params[])
{
    new id, n[MAX_PLAYER_NAME],on[MAX_PLAYER_NAME];
    new tmp[256], Index;
    tmp = strtok(params,Index), id = strval(tmp);
    GetPlayerName(id,on,sizeof(on));
    GetPlayerName(playerid,n,sizeof(n));
    if(PInfo[playerid][Level] < 1) return SendClientMessage(playerid,ORANGE,"You need to be level 1 Admin to use this command!");
    if(!strlen(params)) return SendClientMessage(playerid,GREY,"USAGE: /get <ID> ");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,GREY,"Invalid ID");
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(id, x, y, z+3);
    return 1;
}
Whats wrong?
Reply


Messages In This Thread
SAMP Command Returns Unkown Command - by Shockey HD - 19.07.2011, 05:19
Re: SAMP Command Returns Unkown Command - by [HiC]TheKiller - 19.07.2011, 06:08
Re: SAMP Command Returns Unkown Command - by Shockey HD - 19.07.2011, 07:22
Re: SAMP Command Returns Unkown Command - by [HiC]TheKiller - 19.07.2011, 07:24

Forum Jump:


Users browsing this thread: 2 Guest(s)