27.08.2013, 21:52
isso q vc ta querendo ?
pawn Код:
if(strcmp(cmd, "/1", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "~p~| ~r~1 ~p~|");
GameTextForAll(string, 1000, 5);
}
return 1;
}
if(strcmp(cmd, "/2", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "~p~| ~r~2 ~p~|");
GameTextForAll(string, 1000, 5);
}
return 1;
}
if(strcmp(cmd, "/3", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "~p~| ~y~3 ~p~|");
GameTextForAll(string, 1000, 5);
}
return 1;
}
if(strcmp(cmd, "/go", true) == 0 || strcmp(cmd, "/4", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "~p~| ~g~Go Go Go ~p~|");
GameTextForAll(string, 1000, 5);
}
return 1;
}