22.04.2012, 02:19
pawn Код:
dcmd_fuck(playerid,params[])
{
if(AccInfo[playerid][Level] >= 0)
{
new Index;
new tmp[256]; tmp = strtok(params,Index);
new string[128];
new fname [MAX_PLAYER_NAME];
new PlayerName[MAX_PLAYER_NAME];
if(!strlen(tmp)) return
SendClientMessage(playerid, red, "Usage: /fuck [PlayerID]");
new player1 = strval(tmp);
GetPlayerName(player1, PlayerName, MAX_PLAYER_NAME);
GetPlayerName(playerid, fname, sizeof(fname));
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
{
ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0);
format(string,sizeof(string)," **%s (%d) Flips %s (%d) Off.",fname,playerid,PlayerName,player1);
SendClientMessageToAll(COLOR_WHITE, string);
return 1;
}
//else return SendClientMessage(playerid,red, "%s (%d) is Not Close Enough To Flip him Off",PlayerName,player1);
//}
else return SendClientMessage(playerid,red, "Invaild Player ID");
}
else return ErrorMessages(playerid, 1);
}