08.03.2011, 02:58
(
Последний раз редактировалось ElChapoGuzman; 08.03.2011 в 06:58.
)
delete this please i dont need anymore
dcmd_getplayermoney(playerid,params[]) { new playerid2, string[128]; if(!sscanf(params, "u", playerid2)) { if(IsPlayerConnected(playerid2)) { format(string, sizeof(string),"Player %s (ID %d) has got %s money!", GetName(playerid2), playerid2, GetPlayerMoney(playerid2)); SendClientMessage(playerid,0x33FF33AA,string); } else return SendClientMessage(playerid,red,"ERROR: Player is not connected!"); } else return SendClientMessage(playerid,red,"USAGE: /getplayermoney [playerid]"); return 1; }
stock GetName(playerid) { new name[MAX_PLAYER_NAME]; if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, name, sizeof(name)); } else { name = "Unknown"; } return name; }
Код:
dcmd_getplayermoney(playerid,params[]) { new playerid2, string[128]; if(!sscanf(params, "u", playerid2)) { if(IsPlayerConnected(playerid2)) { format(string, sizeof(string),"Player %s (ID %d) has got %s money!", GetName(playerid2), playerid2, GetPlayerMoney(playerid2)); SendClientMessage(playerid,0x33FF33AA,string); } else return SendClientMessage(playerid,red,"ERROR: Player is not connected!"); } else return SendClientMessage(playerid,red,"USAGE: /getplayermoney [playerid]"); return 1; } Код:
stock GetName(playerid) { new name[MAX_PLAYER_NAME]; if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, name, sizeof(name)); } else { name = "Unknown"; } return name; } |
Код:
dcmd_getplayermoney(playerid,params[]) { new playerid2, string[128]; if(!sscanf(params, "u", playerid2)) { if(IsPlayerConnected(playerid2)) { format(string, sizeof(string),"Player %s (ID %d) has got %s money!", GetName(playerid2), playerid2, GetPlayerMoney(playerid2)); SendClientMessage(playerid,0x33FF33AA,string); } else return SendClientMessage(playerid,red,"ERROR: Player is not connected!"); } else return SendClientMessage(playerid,red,"USAGE: /getplayermoney [playerid]"); return 1; } Код:
stock GetName(playerid) { new name[MAX_PLAYER_NAME]; if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, name, sizeof(name)); } else { name = "Unknown"; } return name; } |