24.08.2010, 09:31
Ok i'll give all that fuction:
It's in Lithuanian language ;P forward is in script starting. And i really think it's too long, because now is just one:
And now it's compiling successfully, but when i make 13 PlayerToPoint it has compiling errors ;//
Код:
8655: public Matuoja(playerid) 8656: { 8657: new msg[128]; 8658: if(PlayerToPoint(20,playerid,-1997.9504,248.4633,31.5155)) 8659: { 8660: if(GetPlayerSpeed(playerid) >= 100) 8661: { 8662: if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) 8663: { 8664: if(!playerDB[playerid][matavimas]) 8665: { 8666: playerDB[playerid][matavimas]=true; 8667: SetTimer("Pamatav",3000,1); 8668: SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+2); 8669: new msg2[128],name[MAX_PLAYER_NAME]; 8670: GetPlayerName(playerid,name,sizeof(name)); 8671: format(msg2,sizeof(msg2),"[racija] %s Virsijo leistina greiti(100KM/H)",name); 8672: SendMessageToCops(BLUE,msg2); 8673: format(msg,128,"* Jus virsijote greiti, leistinas greitis 100 KM/H o jusu buvo %d KM/H.",GetPlayerSpeed(playerid)); 8674: SendClientMessage(playerid,RED,msg); 8675: } 8676: } 8677: } 8678: return 1; 8679: } 8680: return 1; 8681: }
Код:
PlayerToPoint(20,playerid,-1997.9504,248.4633,31.5155)