#include <a_samp>#define COLOR_INTERFACE_BODY 0xFDE39DAApublic OnPlayerCommandText(playerid,cmdtext[]){ if(!strcmp(cmdtext,\"/szerszám\",true)) { new Float:ap; GetPlayerArmour(playerid,ap); if(ap>0) return SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Te már elõvetted a szerszámod\"); if(GetPlayerSkin(playerid)>179 && GetPlayerSkin(playerid)<181) { SetPlayerAttachedObject(playerid, 1, 18644, 6, 0.082242, 0.039213, 0.000000, 180.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SetPlayerAttachedObject(playerid, 2, 18635, 5, 0.0, 0.044200, -0.060892, 156.370300, 0.0, 0.0, 1.0, 1.0, 1.0 ); SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Elõvetted a szerszámaidat.\"); } else { SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Ezt a parancsot csak a szerelõktagok használhatják.\"); } return 1; } return 0;}public OnPlayerUpdate(playerid){ new Float:ap; GetPlayerArmour(playerid,ap); if(ap<1) { RemovePlayerAttachedObject(playerid,1); RemovePlayerAttachedObject(playerid,2); } return 1;}public OnFilterScriptExit(){ for(new i; i<MAX_PLAYERS; i++) { RemovePlayerAttachedObject(i,1); RemovePlayerAttachedObject(i,2); RemovePlayerAttachedObject(i,3); RemovePlayerAttachedObject(i,4); } return 1;}
#include <a_samp>#define COLOR_INTERFACE_BODY 0xFDE39DAApublic OnPlayerCommandText ( playerid, cmdtext [ ] ){ if ( !strcmp ( cmdtext, \"/szerszám\", true ) ) { if ( GetPVarInt ( playerid, \"Szerszam\" ) == 1 ) return SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Te már elõvetted a szerszámod\" ); if ( GetPlayerSkin ( playerid ) >179 && GetPlayerSkin ( playerid ) < 181 ) { SetPlayerAttachedObject ( playerid, 1, 18644, 6, 0.082242, 0.039213, 0.000000, 180.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SetPlayerAttachedObject ( playerid, 2, 18635, 5, 0.0, 0.044200, -0.060892, 156.370300, 0.0, 0.0, 1.0, 1.0, 1.0 ); SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Elõvetted a szerszámaidat.\"); SetPVarInt ( playerid, \"Szerszam\", 1 ); } else { SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Ezt a parancsot csak a szerelõktagok használhatják.\" ); } return 1; } return 0;}public OnFilterScriptExit ( ){ for ( new i; i < MAX_PLAYERS; i++ ) { RemovePlayerAttachedObject ( i, 1 ); RemovePlayerAttachedObject ( i, 2 ); RemovePlayerAttachedObject ( i, 3 ); RemovePlayerAttachedObject ( i, 4 ); } return 1;}
SetPlayerAttachedObject ( playerid, 2, 18635, 5, 0.0, 0.044200, -0.060892, 156.370300, 0.0, 0.0, 1.0, 1.0, 1.0 );
if(strcmp(cmdtext, \"/szerszám\", true) == 0) {{SetPlayerAttachedObject ( playerid, 2, 18635, 5, 0.0, 0.044200, -0.060892, 156.370300, 0.0, 0.0, 1.0, 1.0, 1.0 );}return 1;}
#include <a_samp>#define COLOR_INTERFACE_BODY 0xFDE39DAApublic OnPlayerCommandText ( playerid, cmdtext [ ] ){ if ( !strcmp ( cmdtext, \"/Kalapács\", true ) ) { if ( GetPVarInt ( playerid, \"Kalapacs\" ) == 1 ) return SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Te már elõvetted a kalapácsod\" ); if ( GetPlayerSkin ( playerid ) >179 && GetPlayerSkin ( playerid ) < 181 ) { SetPlayerAttachedObject ( playerid, 2, 18635, 5, 0.0, 0.044200, -0.060892, 156.370300, 0.0, 0.0, 1.0, 1.0, 1.0 ); SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Elõvetted a kalapácsod.\"); SetPVarInt ( playerid, \"Kalapacs\", 1 ); } else { SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Ezt a parancsot csak a szerelõktagok használhatják.\" ); } return 1; } return 0;}public OnPlayerCommandText ( playerid, cmdtext [ ] ){ if ( !strcmp ( cmdtext, \"/csavarhúzó\", true ) ) { if ( GetPVarInt ( playerid, \"csavarhuzo\" ) == 1 ) return SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Te már elõvetted a csavarhúzódat\" ); if ( GetPlayerSkin ( playerid ) >179 && GetPlayerSkin ( playerid ) < 181 ) { SetPlayerAttachedObject ( playerid, 3, 18644, 6, 0.082242, 0.039213, 0.000000, 180.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Elõvetted a csavarhúzód.\"); SetPVarInt ( playerid, \"csavarhuzo\", 1 ); } else { SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Ezt a parancsot csak a szerelõktagok használhatják.\" ); } return 1; } return 0;}public OnFilterScriptExit ( ){ for ( new i; i < MAX_PLAYERS; i++ ) { RemovePlayerAttachedObject ( i, 1 ); RemovePlayerAttachedObject ( i, 2 ); RemovePlayerAttachedObject ( i, 3 ); RemovePlayerAttachedObject ( i, 4 ); } return 1;}
#include <a_samp>#define COLOR_INTERFACE_BODY 0xFDE39DAApublic OnPlayerCommandText ( playerid, cmdtext [ ] ){ if ( !strcmp ( cmdtext, \"/Kalapács\", true ) ) { if ( GetPVarInt ( playerid, \"Kalapacs\" ) == 1 ) return SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Te már elõvetted a kalapácsod\" ); if ( GetPlayerSkin ( playerid ) >179 && GetPlayerSkin ( playerid ) < 181 ) { SetPlayerAttachedObject ( playerid, 2, 18635, 5, 0.0, 0.044200, -0.060892, 156.370300, 0.0, 0.0, 1.0, 1.0, 1.0 ); SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Elõvetted a kalapácsod.\"); SetPVarInt ( playerid, \"Kalapacs\", 1 ); } else { SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Ezt a parancsot csak a szerelõktagok használhatják.\" ); }return 1;} if ( !strcmp ( cmdtext, \"/csavarhúzó\", true ) ) { if ( GetPVarInt ( playerid, \"csavarhuzo\" ) == 1 ) return SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Te már elõvetted a csavarhúzódat\" ); if ( GetPlayerSkin ( playerid ) >179 && GetPlayerSkin ( playerid ) < 181 ) { SetPlayerAttachedObject ( playerid, 3, 18644, 6, 0.082242, 0.039213, 0.000000, 180.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Elõvetted a csavarhúzód.\"); SetPVarInt ( playerid, \"csavarhuzo\", 1 ); } else { SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Ezt a parancsot csak a szerelõktagok használhatják.\" ); } return 1; } return 0;}public OnFilterScriptExit ( ){ for ( new i; i < MAX_PLAYERS; i++ ) { RemovePlayerAttachedObject ( i, 1 ); RemovePlayerAttachedObject ( i, 2 ); RemovePlayerAttachedObject ( i, 3 ); RemovePlayerAttachedObject ( i, 4 ); } return 1;}
#include <a_samp>#define COLOR_INTERFACE_BODY 0xFDE39DAApublic OnPlayerCommandText ( playerid, cmdtext [ ] ){ if ( !strcmp ( cmdtext, \"/kalapács\", true ) ) { if ( GetPVarInt ( playerid, \"kalapacs\" ) == 1 ) return SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Te már elõvetted a kalapácsod\" ); if ( GetPlayerSkin ( playerid ) >179 && GetPlayerSkin ( playerid ) < 181 ) { SetPlayerAttachedObject ( playerid, 1, 18635, 5, 0.0, 0.044200, -0.060892, 156.370300, 0.0, 0.0, 1.0, 1.0, 1.0 ); SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Elõvetted a kalapácsod.\"); SetPVarInt ( playerid, \"kalapacs\", 1 ); } else { SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Ezt a parancsot csak a szerelõktagok használhatják.\" ); } return 1; } if ( !strcmp ( cmdtext, \"/csavarhúzó\", true ) ) { if ( GetPVarInt ( playerid, \"csavarhuzo\" ) == 2 ) return SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Te már elõvetted a csavarhúzódat\" ); if ( GetPlayerSkin ( playerid ) >179 && GetPlayerSkin ( playerid ) < 181 ) { SetPlayerAttachedObject ( playerid, 2, 18644, 6, 0.082242, 0.039213, 0.000000, 180.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Elõvetted a csavarhúzód.\"); SetPVarInt ( playerid, \"csavarhuzo\", 2 ); } else { SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Ezt a parancsot csak a szerelõktagok használhatják.\" ); } return 1; } if ( !strcmp ( cmdtext, \"/kalapács\", true ) ) { if ( GetPVarInt ( playerid, \"kalapacs\" ) == 3 ) return SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Te már elõvetted a kalapácsod\" ); if ( GetPlayerSkin ( playerid ) >126 && GetPlayerSkin ( playerid ) < 128 ) { SetPlayerAttachedObject ( playerid, 3, 18635, 6, 0.038329, -0.032494, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Elõvetted a kalapácsod.\"); SetPVarInt ( playerid, \"kalapacs\", 3 ); } else { SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Ezt a parancsot csak a szerelõktagok használhatják.\" ); } return 1; } if ( !strcmp ( cmdtext, \"/csavarhúzó\", true ) ) { if ( GetPVarInt ( playerid, \"csavarhuzo\" ) == 4 ) return SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Te már elõvetted a csavarhúzódat\" ); if ( GetPlayerSkin ( playerid ) >126 && GetPlayerSkin ( playerid ) < 128 ) { SetPlayerAttachedObject ( playerid, 4, 18644, 6, 0.120055, -0.002112, 0.022211, 180.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SendClientMessage(playerid,COLOR_INTERFACE_BODY,\"Elõvetted a csavarhúzód.\"); SetPVarInt ( playerid, \"csavarhuzo\", 4 ); } else { SendClientMessage ( playerid,COLOR_INTERFACE_BODY, \"Ezt a parancsot csak a szerelõktagok használhatják.\" ); } return 1; } return 0;}public OnFilterScriptExit ( ){ for ( new i; i < MAX_PLAYERS; i++ ) { RemovePlayerAttachedObject ( i, 1 ); RemovePlayerAttachedObject ( i, 2 ); RemovePlayerAttachedObject ( i, 3 ); RemovePlayerAttachedObject ( i, 4 ); } return 1;}