Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //no topo:
- new portao1A;
- //no OnGameModeInit:
- portao1A = CreateObject(975, 1544.886108, -1626.800415, 14.057503, 0.0000, 0.0000, 90.2408);
- //no OnPlayerCommandText:
- if(strcmp(cmdtext, "/ap1", true) == 0 || strcmp(cmdtext, "/aportao1", true) == 0)
- {
- if(gTeam[playerid] == 2 || IsACop(playerid))
- {
- MoveObject(portao1A, 1544.889160, -1619.607056, 14.057503, 3.00);
- } else {
- SendClientMessage(playerid, COLOR_GRAD2, "Voc� n�o � policial para entrar a�!");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/fp1", true) == 0 || strcmp(cmdtext, "/fportao1", true) == 0)
- {
- if(gTeam[playerid] == 2 || IsACop(playerid))
- {
- MoveObject(portao1A, 1544.886108, -1626.800415, 14.057503, 3.00);
- } else {
- SendClientMessage(playerid, COLOR_GRAD2, "Voc� n�o � policial para fechar este port�o!");
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment