18.03.2012, 22:49
A New String? Eu jб tinha ela,sу coloquei isso
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
if (strcmp(cmdtext,"/Sairdm",true) != 0 && GetPlayerVirtualWorld(playerid)!= 0)
{
GameTextForPlayer(playerid, "~g~Para Sair Do Dm Use: ~r~/Sairdm", 2500, 5);
return 1;
}
if (strcmp("/Sairdm", cmdtext, true, 10) == 0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FF0000}%s {1E90FF}Correu de uma das Arenas de DM! {FF0000}( /SairDM )", pname);
SendClientMessageToAll(COLOR_YELLOW, string);
SpawnPlayer(playerid);
return 1;
}
//////////e Isso no comando que eu tenho de /minigun
SetPlayerVirtualWorld(playerid, 1);