Command not recognised + Cooordinates
#3

Try this (I not tested):

pawn Код:
if (strcmp("/achat", cmdtext, true, 6) == 0) // Talk To Other Admins
{
if(PlayerAdminLevel[playerid] == 1337)
{
if(strlen(cmdtext) <= 7)
return SendClientMessage(playerid,COLOR_ERROR,"USAGE: /achat (msg)");
new output[255];
new pname[24];
GetPlayerName(playerid, pname, 24);
strmid(output,cmdtext,7,strlen(cmdtext));
format(string, sizeof(string), "Admin Chat: %s(%d): %s",pname,playerid,output);
printf("%s", string);
for(new i=0;i<MAX_PLAYERS;i++)
{
format(string, sizeof(string), "Admin Chat: %s(%d): %s",pname,playerid,output);
SendClientMessage(i,0xFF7F50AA,string);
}
}
return 1;
}
And, to put coordinates in teleport:

pawn Код:
SetPlayerPos(playerid,Float:X,Float:Y,Float:Z);
Exemple:

pawn Код:
SetPlayerPos(playerid,2059.8872, 1202.8521, 2120.8960);

Reply


Messages In This Thread
Command not recognised + Cooordinates - by Moglizorz. - 23.01.2010, 17:42
Re: Command not recognised + Cooordinates - by Moglizorz. - 23.01.2010, 19:03
Re: Command not recognised + Cooordinates - by LuxurioN™ - 23.01.2010, 19:17

Forum Jump:


Users browsing this thread: 2 Guest(s)