Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // gtaRL Funscript: Explofunktio
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Explofunktio geladen");
- print("--------------------------------------\n");
- return 1;
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new Float:x,Float:y,Float:z;
- new Float:xx2,Float:yy2,Float:az;
- new Float:x3,Float:y3;
- new Float:x4,Float:y4;
- new Float:x5,Float:y5;
- new Float:x6,Float:y6;
- new Float:xi,Float:yi;
- new Float:xi2,Float:yi2;
- if( strcmp(cmdtext, "/exp", true) == 0)
- {
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid, az);
- xi = x + (5 * floatsin(-az, degrees));
- yi = y + (5 * floatcos(-az, degrees));
- xx2 = x + (10 * floatsin(-az, degrees));
- yy2 = y + (10 * floatcos(-az, degrees));
- x3 = x + (15 * floatsin(-az, degrees));
- y3 = y + (15 * floatcos(-az, degrees));
- x4 = x + (20 * floatsin(-az, degrees));
- y4 = y + (20 * floatcos(-az, degrees));
- x5 = x + (25 * floatsin(-az, degrees));
- y5 = y + (25 * floatcos(-az, degrees));
- x6 = x + (30 * floatsin(-az, degrees));
- y6 = y + (30 * floatcos(-az, degrees));
- CreateExplosion(xi2,yi2,z-1,11,0);
- CreateExplosion(xi,yi,z-1,11,2.5);
- CreateExplosion(xx2,yy2,z-1,11,2.5);
- CreateExplosion(x3,y3,z-1,11,2.5);
- CreateExplosion(x4,y4,z-1,11,2.5);
- CreateExplosion(x5,y5,z-1,11,2.5);
- CreateExplosion(x6,y6,z-1,11,10);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement