29.08.2011, 11:13
i suggest the PVars:
idk if you use params in your command, maybe its cmdtext.
to send a message to all (other) players will require a loop:
only the concept, didnt add the IsPlayerConnected etc stuff...
Код:
SetPVarString(playerid,"Answered",params);
to send a message to all (other) players will require a loop:
Код:
new string[128]; new answer[128]; GetPVarString(playerid,"Answered",answer,128) new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name,sizeof(Name)); format(string,sizeof(string),"(%d)%s answered: %s",playerid,Name,answer); for(new id=0;id<MAX_PLAYERS;id++) { if(playerid!=id) { SendClientMessage(id,0xffffffff,string); } }