17.03.2015, 22:16
(
Последний раз редактировалось Lуs; 17.03.2015 в 22:19.
Причина: Tнtulo, prefixo e tags incorretas.
)
Coloquei uma fs Ant Glith
e estб dando este error 021: symbol already defined: "OnPlayerKeyStateChange"
Cod
e estб dando este error 021: symbol already defined: "OnPlayerKeyStateChange"
Cod
PHP код:
new fAutoC[MAX_PLAYERS];
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && weaponid == 24){
fAutoC[playerid] ++;
if(gettime() > GetPVarInt(playerid, "UmSegundo")){
SetPVarInt(playerid, "UmSegundo", gettime() + 1);
fAutoC[playerid] = 0;
}else{
if(fAutoC[playerid] > 4){
SendClientMessage(playerid, 0xFF0000FF, "Vocк estб usando Macro / Auto-CBUG.");
fAutoC[playerid] = 0;
}
}
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_CROUCH)
fAutoC[playerid] = 0;
return 1;