Need Help for some scripts....
#1

Hello Guys....

Please can anyone give me
1) /pm = player message
2) /cc = carcolor
3) /s - /g = Saveplace - Gotoplace


Please help me i need this scripts so much


Thank you!!!!
Reply
#2

pawn Код:
stock getpName( playerid )
{
    new pName[ 24 ];
    GetPlayerName( playerid, pName, sizeof pName );
    return pName;
}

// PM Command ( ZCMD + SSCANF )

CMD:pm( playerid, params[ ] )
{
    new targetid, msg[ 128 ];

    if ( sscanf( params, "us[128]", targetid, msg ) )
        return SendClientMessage( playerid, 0xFFFFFFAA, "Correct Usage: /PM < Playerid/PartOfName > < MSG >." );

    if ( !IsPlayerConnected( targetid ) )
        return SendClientMessage( playerid, 0xFFFFFFAA, "Invalid player." );

    if ( targetid == playerid )
        return SendClientMessage( playerid, 0xFFFFFFAA, "You cannot PM yourself." );

    new szstring[ 128 ];

    format( szstring, sizeof szstring, ">>PM Sent to %s ( %d ) : %s.",  getpName( targetid ), targetid, msg );

    SendClientMessage( playerid, 0x00FF00AA, szstring );

    format( szstring, sizeof szstring, ">>PM from %s( %d ) : %s.", getpName( playerid ), playerid, msg );

    SendClientMessage( playerid, 0x00FF00AA, szstring );

    return 1;
}

// Carcolor command ( ZCMD + SSCANF )

CMD:cc( playerid, params[ ] )
{
    new color1, color2;

    if ( !IsPlayerInAnyVehicle( playerid ) )
        return SendClientMessage( playerid, 0xFFFFFFAA, "You are not in any vehicles." );

    if ( sscanf( params, "ii", color1, color2 ) )
        return SendClientMessage( playerid, 0xFFFFFFAA, "/cc < color1 > < color2 >" );

    ChangeVehicleColour( GetPlayerVehicleID( playerid ), color1, color2 );

    return 1;
}
EDIT: Here is the /s and /g script! http://basicz.pastebay.com/126242 ( pastebay fucked up the indentation )
Reply
#3

Thanx but i have 1 problem... look

C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(880) : warning 217: loose indentation
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(886) : warning 217: loose indentation
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1107) : warning 217: loose indentation
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1107) : error 017: undefined symbol "pm"
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1111) : error 017: undefined symbol "sscanf"
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1122) : error 017: undefined symbol "getpName"
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1126) : error 017: undefined symbol "getpName"
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1135) : warning 225: unreachable code
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1135) : error 017: undefined symbol "cc"
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1142) : error 017: undefined symbol "sscanf"
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1145) : error 017: undefined symbol "ChangeVehicleColour"
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1137) : warning 203: symbol is never used: "color2"
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1137) : warning 203: symbol is never used: "color1"
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1137 -- 1150) : warning 225: unreachable code
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1137 -- 1150) : warning 217: loose indentation
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(1107) : warning 203: symbol is never used: "CMD"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Reply
#4

Can you make filescript with this sctipts plz..?
Reply
#5

You have to include sscanf and zcmd in order for it to work... the //comment says so lol.
Reply
#6

yes but i dont know how...
Reply
#7

Download zcmd.inc and sscanf.inc and paste them in pawno > include
Reply
#8

C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(307) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(311) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(320) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(324) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(333) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(337) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(346) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(350) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(359) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(363) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(372) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(376) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(386) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(390) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(399) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(403) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(413) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(417) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(426) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(430) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(439) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(443) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(452) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(456) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(466) : error 079: inconsistent return types (array & non-array)
C:\Users\eddy\Desktop\Giorgos\НЭпт цЬкелпт\gamemodes\TFDGM.pwn(470) : error 079: inconsistent return types (array & non-array)

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.





Reply
#9

Please make someone a filescript...
Reply
#10

lol nobody can help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)