Okey Guyz i have got a lil prob with cmds 1st= when i am using ban cmd on any player then after 10 mins my game is closed and rejoining shows that my ip is banned!! i think its bcz of having 192.168.1.7 r else like that... here is the ban cmd if u can fix it ..
}
else if (strcmp(cmd, "ban", true) == 0)
{
new reason[ 256 ], plr;
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp), reason = strtok( cmdtext, idx );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_WHITE, "Please log-in to your account." );
else if ( !IsAuthorized( playerid, cmd ) ) SendClientMessage( playerid, COLOR_WHITE, "Sorry,You don't have access to use this command!" );
else if (!strlen(reason)) SendClientMessage(playerid, BLUE,"[Syntax] - The correct use: /c %s <playerid/name> <reason>.",cmdtext);
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid, BLUE,"[Error] - Unknown player.");
else {
PlayerBanIP(plr,"Admin",gPlayers[playerid],cmdtext[strval(reason)+strlen(tmp)+4]);
SendClientMessage(plr, WHITE, "Post appeals on forum
www.mra.createaforum.com");
}
return 1;
2nd: i want to add Pickups and want to add fliterscripts its showing that [load fliterscripts 0] may be i have kept the folder at wrong place...... I want to add timer on cmds like !heal !gotoloc etc + Money on them.... I need !givecash Cmd i copied it from Gups but not working....
3rd: i want to do like if player enters in car i should tell its detail like [to buythis car type !buycar 8,9 etc ids.. here is the cmd of !car if that needs some changings
}
else if ( strcmp( cmd, "!car", true ) == 0 )
{
tmp = strtok( cmdtext, idx );
new plr = FindPlayerIDFromString( tmp );
if ( !strlen( tmp ) )
{
if ( IsPlayerInAnyVehicle( playerid ) )
{
new id, Float:hp;
id = GetPlayerVehicleID( playerid );
GetVehicleHealth( GetPlayerVehicleID( playerid ), hp );
hp = ( hp / 1000.00 ) * 100;
format( szMsg, sizeof( szMsg ), "ID:[ %d ] Health:[ %.0f% ] Owner:[ %s ] Co-Owner:[ %s ] Price:[ $%d ]", id, hp, VehicleInfo[ id ][ Owner ], VehicleInfo[ id ][ Share ], VehicleInfo[ id ][ Price ] );
SendClientMessage( playerid, COLOR_GREEN, szMsg );
}
else SendClientMessage( playerid, COLOR_WHITE, "You are currently on foot." );
}
else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_WHITE, "Error: Unknown player" );
else if ( IsPlayerInAnyVehicle( plr ) )
{
new id, Float:hp;
id = GetPlayerVehicleID( plr );
GetVehicleHealth( GetPlayerVehicleID( plr ), hp );
hp = ( hp / 1000.00 ) * 100;
format( szMsg, sizeof( szMsg ), "ID:[ %d ] Health:[ %.0f% ] Owner:[ %s ] Shared:[ %s ] Price:[ $%d ]", id, hp, VehicleInfo[ id ][ Owner ], VehicleInfo[ id ][ Share ], VehicleInfo[ id ][ Price ] );
SendClientMessage( playerid, COLOR_WHITE, szMsg );
}
else
{
format( szMsg, sizeof( szMsg ), "%s is currently on foot.", gPlayers[ plr ] );
SendClientMessage( playerid, COLOR_WHITE, szMsg );
}
return 1;
I ll wait for you reply
Note: I can not add prop pickups with /c addprop cmd more than 49
i need its solution...