if(strcmp(cmd, "/handsup", true) == 0 || strcmp(cmd, "/render", true) == 0) { if(antihands[playerid] == 1) { SendClientMessage(playerid,COLOR_LIGHTGREEN,"vocк estб congelado nao pode usar o comando!"); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HAN DSUP); return 1; } } |
if(!strcmp(cmd, "/assaltar", true)) { Assaltou[playerid] = gettime() + 55; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USO: /assaltar [ID]"); new id = strval(tmp); if(Assaltou[playerid] < gettime()) return SendClientMessage(playerid, -1, "Vocк usou este comando recentemente. Aguarde algum tempo para usб-lo novamente."); new Float:Pos[3]; GetPlayerPos(id, Pos[0], Pos[1], Pos[2]); if(IsPlayerInRangeOfPoint(playerid, 5.0, Pos[0], Pos[1], Pos[2])) { new money = GetPlayerMoneyEx(id); GivePlayerMoneyEx(id, -money / 1); GivePlayerMoneyEx(playerid, money/1); //WantedPoints[playerid] = 10; SetPlayerCriminal(playerid,255, "Artigo 157, Roubo a mгo armada!"); SendClientMessage(playerid, 0xFFFF00FF, "Vocк assaltou alguem ! Agora corrra !"); SendClientMessage(id, 0xFFFF00FF, "Vocк foi assaltado !"); } else return SendClientMessage(playerid, 0xFF0000FF, "Vocк estб longe do jogador."); return 1; } |
new var[MAX_PLAYERS]; // Exemplo
if(strcmp(cmd, "/handsup", true) == 0 || strcmp(cmd, "/render", true) == 0)
{
if(antihands[playerid] == 1)
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,"vocк estб congelado nao pode usar o comando!");
return 1;
}
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HAN DSUP);
var[playerid] = 1;
return 1;
}
}
if(!strcmp(cmd, "/assaltar", true))
{
Assaltou[playerid] = gettime() + 55;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USO: /assaltar [ID]");
new id = strval(tmp);
if(Assaltou[playerid] < gettime()) return SendClientMessage(playerid, -1, "Vocк usou este comando recentemente. Aguarde algum tempo para usб-lo novamente.");
new Float:Pos[3];
GetPlayerPos(id, Pos[0], Pos[1], Pos[2]);
if(!IsPlayerInRangeOfPoint(playerid, 5.0, Pos[0], Pos[1], Pos[2])) return SendClientMessage(playerid, 0xFF0000FF, "Vocк estб longe do jogador.");
if(var[playerid] == 1)
{
new money = GetPlayerMoneyEx(id);
GivePlayerMoneyEx(id, -money / 1);
GivePlayerMoneyEx(playerid, money/1);
//WantedPoints[playerid] = 10;
SetPlayerCriminal(playerid,255, "Artigo 157, Roubo a mгo armada!");
SendClientMessage(playerid, 0xFFFF00FF, "Vocк assaltou alguem ! Agora corrra !");
SendClientMessage(id, 0xFFFF00FF, "Vocк foi assaltado !");
}
return 1;
}
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HAN DSUP); |
C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(29977) : error 017: undefined symbol "SPECIAL_ACTION_HAN" C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(29977) : error 017: undefined symbol "DSUP" C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(29977) : error 029: invalid expression, assumed zero C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(29977) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
if(strcmp(cmd, "/handsup", true) == 0 || strcmp(cmd, "/render", true) == 0) { if(antihands[playerid] == 1) { SendClientMessage(playerid,COLOR_LIGHTGREEN,"vocк estб congelado nao pode usar o comando!"); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { rendido[playerid] = 1; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HAN DSUP); return 1; } } |
rendido[playerid] = 0; |
if(!strcmp(cmd, "/assaltar", true)) { Assaltou[playerid] = gettime() + 55; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USO: /assaltar [ID]"); new id = strval(tmp); if(Assaltou[playerid] < gettime()) return SendClientMessage(playerid, -1, "Vocк usou este comando recentemente. Aguarde algum tempo para usб-lo novamente."); new Float:Pos[3]; GetPlayerPos(id, Pos[0], Pos[1], Pos[2]); if(!IsPlayerInRangeOfPoint(playerid, 5.0, Pos[0], Pos[1], Pos[2])) return SendClientMessage(playerid, 0xFF0000FF, "Vocк estб longe do jogador."); if(rendido[playerid] == 1) { new money = GetPlayerMoneyEx(id); GivePlayerMoneyEx(id, -money / 1); GivePlayerMoneyEx(playerid, money/1); //WantedPoints[playerid] = 10; SetPlayerCriminal(playerid,255, "Artigo 157, Roubo a mгo armada!"); SendClientMessage(playerid, 0xFFFF00FF, "Vocк assaltou alguem ! Agora corrra !"); SendClientMessage(id, 0xFFFF00FF, "Vocк foi assaltado !"); } return 1; } |
new rendido[MAX_PLAYERS]; |
C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(21925) : warning 213: tag mismatch C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(21926) : warning 213: tag mismatch C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(21927) : warning 213: tag mismatch C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(2192 ![]() C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(22285) : warning 213: tag mismatch C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(22286) : warning 213: tag mismatch C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(22287) : warning 213: tag mismatch C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(2228 ![]() C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(40936) : warning 202: number of arguments does not match definition C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(40945) : warning 202: number of arguments does not match definition C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(40954) : warning 202: number of arguments does not match definition C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(40963) : warning 202: number of arguments does not match definition C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(41762) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 17 Warnings. |
Create3DTextLabel("{00FF00}Brasil {FFFF00}GTA{0000FF} Rio de Janeiro{FFFFFF}\nLojas de Araras\nAperte 'F' para Entrar",COR_3DLABEL,-2339.2102,2280.7952,856.8953,10.0,0,0);
Create3DTextLabel("{00FF00}Brasil {FFFF00}GTA{0000FF} Rio de Janeiro{FFFFFF}\nLojas de Raзгo para Araras\nAperte 'F' para Entrar",COR_3DLABEL,-2339.2141,2277.2810,856.8953,10.0,0,0);
Create3DTextLabel("{00FF00}Brasil {FFFF00}GTA{0000FF} Rio de Janeiro{FFFFFF}\nLojas de Venda de Araras\nAperte 'F' para Entrar",COR_3DLABEL,-2339.4392,2273.6833,856.8953,10.0,0,0);
Create3DTextLabel("{00FF00}Brasil {FFFF00}GTA{0000FF} Rio de Janeiro{FFFFFF}\nLojas de Gaiola para Araras\nAperte 'F' para Entrar",COR_3DLABEL,-2339.3374,2270.1755,856.8953,10.0,0,0);
AddStaticPickup(1318, 23, -2339.2102,2280.7952,856.8953);//Comprar Arara
AddStaticPickup(1318, 23, -2339.2141,2277.2810,856.8953);//Raзгo de Araras
AddStaticPickup(1318, 23, -2339.4392,2273.6833,856.8953);
AddStaticPickup(1318, 23, 1491.1531,1305.9618,1093.2964);//Cartуrio Menu
#include <a_samp>
new Weapons[MAX_PLAYERS][11], Ammo[MAX_PLAYERS][11];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if((newstate == PLAYER_STATE_DRIVER) || (newstate == PLAYER_STATE_PASSENGER))
{
for(new j=0; j<11; j++) GetPlayerWeaponData(playerid, j, Weapons[playerid][j], Ammo[playerid][j]);
ResetPlayerWeapons(playerid);
}
if((newstate == PLAYER_STATE_ONFOOT) && ((oldstate == PLAYER_STATE_DRIVER) || (oldstate == PLAYER_STATE_PASSENGER)))
{
for(new j=0; j<11; j++) GivePlayerWeapon(playerid, Weapons[playerid][j], Ammo[playerid][j]);
}
return 1;
}