13.08.2011, 18:32
FFS ! xD It's zcmd OR strcmp !! And not together so you shoose zcmd OR strcmp:
And to make it easy: delete
pawn Код:
CMD:alexobando21(playerid,params[])
{
new szString[128], Float:Position[3], szName[MAX_PLAYER_NAME];
GetPlayerName(playerid, szName, sizeof(szName));
GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
format(szString, sizeof(szString), "~g~Admin ~w~%s started a war get ready!", szName);
GameTextForAll(szString, 5000, 5 );
SetPlayerVirtualWorld(playerid, 9);
SetTimerEx("TeleportPlayers", 10000, false, "d", playerid, Position[0], Position[1], Position[2]);
return 1;
}
CMD:ekk(playerid, params[])
{
new str[128], ID;
if(sscanf, "us[128]", ID, str) return SendClientMessage(playerid, -1, "Usage: ekk [playerid] [reason]");
if(GetPlayerVirtualWorld(playerid) == 9)
{
SetPlayerPos(ID, x,y,z);
SetPlayerVirtualWorld(ID, 0);
}
else
{
SendClientMessage(ID, -1, "The player you specified is not in Virtual World 9!");
}
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[]) { }