Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!strcmp(cmd, "/setarcasa", true))
- {
- if(Profissao[playerid] == CORRETOR || IsPlayerAdmin(playerid)
- {
- new tmp[256];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))return SendClientMessage(playerid, COLOR_RED, "/setarcasa [nick]");
- if(!udb_Exists(tmp)) //coloquei um "!" ali, ai ele verifica se a casa N�O existe
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- //se n�o funcionar, descomente a linha abaixo:
- //udb_create(tmp); //� algo assim, se o compilador n�o reconhecer a fun��o, ache como ela � pra criar o arquivo
- udb_setPosition(tmp, X, Y, Z);
- udb_setAng(tmp, 0);
- SendClientMessage(playerid, COLOR_GREEN, "Casa salva.");
- }
- } else {
- SendClientMessage(playerid, COLOR_RED, "Voc� n�o � um corretor!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment