18.05.2012, 10:56
thx helped but now ui have other problem when i type it i says player not exist : tokio zaidejo nera.
Code:
CMD:kviest(playerid, params[]) { new name[MAX_PLAYER_NAME]; new id = GetPlayeridMid(name); if(id==INVALID_PLAYER_ID) return SendClientMessage(playerid,GREEN,"==|Klaida: Zaidejo nera!"); kviestas[id][GetPlayerVirtualWorld(playerid)]=true; new kvietimas[24]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); format(kvietimas,sizeof(kvietimas),"==|%s pakviete i savo namus!",name); SendClientMessage(id,GREEN,kvietimas); GetPlayerName(id,name,MAX_PLAYER_NAME); format(kvietimas,sizeof(kvietimas),"==|Jei nori atsaukti kvietima :/nekviest %s",name,name); SendClientMessage(playerid,GREEN,kvietimas); return 1; }