01.10.2011, 22:40
Olha, o Certo Nao й Assim
Exemplo Do Meu:
Exemplo Do Meu:
Код:
Topo new dilly; OngadeModeInt... dilly = CreateDynamicObject(10671, 1255.7858886719, -767.39465332031, 93.335136413574, 0, 0, 270); OnplayerCommand... if (strcmp(cmdtext, "/fc&e", true) ==0){ new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), PASTA_CONTAS, aname); if (strcmp(aname, "[ReD]MiDNiGhT.CE", true) == 0){ MoveObject(dilly, 1245.4631347656, -767.47180175781, 92.964469909668, 2.0); SendClientMessage(playerid,Azul, "Fechando Seu Portao Sr.[ReD]MiDNiGhT.CE"); return 1; } else { SendClientMessage(playerid,Vermelho,"Vocк Nao й o [ReD]MiDNiGhT.CE!"); } return 1; } if (strcmp(cmdtext, "/ac&e", true) ==0){ new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), PASTA_CONTAS, aname); if (strcmp(aname, "[ReD]MiDNiGhT.CE", true) == 0){ MoveObject(dilly,1255.7858886719, -767.39465332031, 93.335136413574, 2.0); SendClientMessage(playerid,Azul, "Abrindo Seu Portao Sr.[ReD]MiDNiGhT.CE"); return 1; } else { SendClientMessage(playerid,Vermelho,"Vocк Nao й o [ReD]MiDNiGhT.CE!"); } return 1; }