05.11.2012, 16:14
QUANDO COLOCO O TAPETE ELE NAO FAIZ DANOS NO CARRO O Q FASSO PRA ARRUMA ISSO AJUDA AI
PHP код:
if (strcmp(cmd,"/prego",true) == 0)
{
if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й um oficial !");
if(PlayerInfo[playerid][pCorrente] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "[BLP] Vocк ja criou um tapete de prego, use /rprego para retira-la.");
}
else
{
if(!IsPlayerInAnyVehicle(playerid))//animcon
{
SendClientMessage(playerid, COLOR_WHITE, "[BLP] tapete de rego colocada, use /rprego para retira-lo.");
new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
GetPlayerPos(playerid, plocx, plocy, plocz);
GetPlayerFacingAngle(playerid,ploca);
CreateStrip(plocx,plocy,plocz,ploca);
PlayerInfo[playerid][pCorrente] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "[BLP] Use esse comando somente fora do carro");
}
}
return 1;
}
else if(strcmp(cmdtext, "/removerpregos", true)==0 || strcmp(cmdtext, "/rprego", true)==0)
{
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "[BLP] Vocк nгo й um Policial Rodoviario");
return 1;
}
else
{
//DeleteClosestStrip();
PlayerInfo[playerid][pCorrente] = 0;
DeleteAllStrip();
}
return 1;
}
else if(strcmp(cmdtext, "/removetodospregos", true)==0 || strcmp(cmdtext, "/rtodospregos", true)==0)
{
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "[BLP] Vocк nгo й um Policial Rodoviario");
return 1;
}
else
{
DeleteAllStrip();
}
return 1;
}