04.11.2016, 09:10
Why it doesnt send out the message if i was invited to a faction? any ideas ?
Код:
CMD:inv(playerid, params[]) { if(PlayerInfo[playerid][pFacleader] > 0 || PlayerInfo[playerid][pFacrank] >= 6) { new tarid, facid; if(sscanf(params, "u", tarid)) return SendClientMessage(playerid, -1, "use: /inv [id]"); facid = PlayerInfo[playerid][pFaction]; SetPVarInt(tarid, "invitefac", facid); SendClientMessage(tarid, COLOR_GREEN, "You have been invited to a faaction type /join to join"); } else { SendClientMessage(playerid, COLOR_RED, "You can't use this command."); } return 1; }