04.12.2013, 18:42
i have this code:
and when npc is changed his pos, variable isint seting
pawn Код:
enum BotuKintamieji
{
dyleris1,
dyleris2,
dyleris3,
dyleris4
}
new bKint[ BotuKintamieji ];
pawn Код:
if( !strcmp( npcname, "Dyleris1", true ) )// Stumdo dumus
{
bKint[ dyleris1 ] = 0;
SetPlayerPos( playerid, DyleriuSpawn1[ rand1 ][ 0 ],DyleriuSpawn1[ rand1 ][ 1 ],DyleriuSpawn1[ rand1 ][ 2 ] );
SetPlayerFacingAngle( playerid, DyleriuSpawn1[ rand1 ][ 3 ] );
new Float:x,
Float:y,
Float:z
;
GetPlayerPos( playerid, x, y, z );
if( x == 254 && y == -158 && z == 1 ) bKint[ dyleris1 ] = 1;
else if( x == 644 && y == -511 && z == 16 ) bKint[ dyleris1 ] = 2;
else if( x == 1310 && y == 165 && z == 20 ) bKint[ dyleris1 ] = 3;
else if( x == 2259.426 && y == 64 && z == 26 ) bKint[ dyleris1 ] = 4;
}