why dosnt this work?
#1

hum this just says ... has egoto disabled it dosnt teleport why?
pawn Код:
dcmd_enablegoto(playerid,params[])
{
    #pragma unused params
    enablegoto[playerid] = 1;
    return 1;
}
dcmd_egoto(playerid,params[])
{
    #pragma unused params
    new id,string[100],pName[MAX_PLAYER_NAME],pName2[MAX_PLAYER_NAME];
    if(enablegoto[id] == 0) return SendClientMessage(playerid,red,"ERROR: That player has goto disabled");
    GetPlayerPos(id,X,Y,Z);
    SetPlayerPos(playerid,X,Y,Z);
    GetPlayerName(id,pName2,sizeof(pName2));
    GetPlayerName(playerid,pName,sizeof(pName));
    format(string,sizeof(string),"||Teleported to %s||",pName2);
    SendClientMessage(playerid,grey,string);
    format(string,sizeof(string),"||%s has teleported to your position||",pName);
    SendClientMessage(id,grey,string);
    return 1;
}
no errors no warnings
Reply


Messages In This Thread
why dosnt this work? - by dark_clown - 03.11.2010, 17:14
Re: why dosnt this work? - by Jochemd - 03.11.2010, 17:23
Re: why dosnt this work? - by Bessensap - 03.11.2010, 17:26
Re: why dosnt this work? - by Jochemd - 03.11.2010, 18:00
Re: why dosnt this work? - by dark_clown - 03.11.2010, 18:31
Re: why dosnt this work? - by The_Moddler - 03.11.2010, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)