18.07.2011, 17:08
here ya go
if get more errors..reply
if get more errors..reply
pawn Код:
if(strcmp("/selfdestruction", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerSkin(playerid) == 255)
{
new string[128];
new sendername[MAX_PLAYER_NAME];
new CountDownTimer;
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string),"%s has activated Self-Destruction of the carrier, Use the door at the carrier to escape with the boats!", sendername);
SendClientMessageToAll(COLOR_RED1, string);
CountDownTimer = SetTimer("CountDown", 30000, false);
}
}
else
{
SendClientMessage(playerid, COLOR_WRONG, "Player not Connected!");
}
return 1;
}
if(strcmp("/makecaptain", cmdtext, true) == 0)
{
new targetid;
if(IsPlayerConnected(targetid))
{
if(IsPlayerAdmin(playerid))
{
if(GetPlayerSkin(playerid) == 255)
{
new string[128];
new sendername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string),"%s has made you a Captain, Don't abuse this position!", sendername2);
SetPlayerTeam(targetid, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_WRONG, "You are not an admin!");
}
}
else
{
SendClientMessage(playerid, COLOR_WRONG, "Player Not Connected!");
}
return 1;
}