26.03.2013, 18:13
So basiclly it shows the message: "You can't use this command yet!"! Even when I didn't use it.
+ The question if it will send to another player which id gived street point and player name?
+ The question if it will send to another player which id gived street point and player name?
pawn Код:
CMD:street(playerid, params[])
{
if(CanUseCmd[playerid] == true)
{
new str[256], Name1[MAX_PLAYER_NAME], id;
if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xCC0000AA, "USAGE: /street <playerid/partofname>");
PlayerInfo[playerid][StreetRespect]++;
format(str, sizeof(str), "Gived you Street Point %s(ID %d)", Name1, playerid);
SendClientMessage(id, 0xFF0000FF, str);
RestrictTime[playerid] = SetTimer("RestrictionOver", 3_600_000, false);
CanUseCmd[playerid] = false;
}
else return SendClientMessage(playerid, 0xCC0000AA, "You can't use this command yet!");
return 1;
}