Atualize suas includes para 0.3b ou 0.3c.
pawn Код:
if(strcmp("/escudo",cmdtext,true,7)==0)
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
if(SetPVarInt(playerid, "Escudo") == 10)
{
RemovePlayerAttachedObject(playerid,1);
RemovePlayerAttachedObject(playerid,2);
RemovePlayerAttachedObject(playerid,3);
RemovePlayerAttachedObject(playerid,4);
SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Desescudado !");
SetPVarInt(playerid, "Escudo", 0);
}
else if(GetPVarInt(playerid, "Escudo") != 10)
{
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Escudado !");
SetPVarInt(playerid, "Escudo", 10);
}
}
return 1;
}