03.11.2010, 17:14
hum this just says ... has egoto disabled it dosnt teleport why?
no errors no warnings
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;
}