• Welcome to Vice City Multiplayer.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - saberman

#1
mIRC/pawn Scripting / How to use INI's for FBI duty
March 08, 2011, 01:30:24 PM
Here's my code:
else if (strcmp(cmd, "fbiduty", true) == 0) {
    if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if(!IsPlayerCommandLevel(playerid,"fbiduty")) SendClientMessage(playerid, RED, "You Are Not A FBI Member");
else {
SetPlayerSkin(playerid, 3);
SetPlayerWeapon(playerid, 20, 300);
SetPlayerWeapon(playerid, 25, 300);
SetPlayerWeapon(playerid, 29, 100);
SetPlayerWeapon(playerid, 26, 400);
SetPlayerArmour(playerid, 100);
SetPlayerTeam(playerid, 15);
new name[20]; new string[128];
GetPlayerName(playerid, name, 20);
format(string, sizeof(string), "You are on FBI duty!", name);
SendClientMessage(playerid, BLUE, string);
}
return 1;
}

As you can see I am using (!IsPlayerCommandLevel, bla) in order to define the ranking system, I yet not know about the ini's.  I can create the ini's file but I am unable to control it on my GUPS file. Can any body help me how do I add the code for GUPS to control the ini's for this FBI duty.
#2
mIRC/pawn Scripting / GUPS question
February 10, 2011, 02:44:19 PM
I want to ask how do I add a a /c command and how do I add like (strcmp(cmd, "back", true) == 0) {
SendClientMessageToAll(COLOR_GREEN, playerid & "is back")???? Waiting for a response.