public OnPlayerSpawn(playerid)
{
GivePlayerWeapon(playerid, 348, 1500);
GivePlayerWeapon(playerid, 351, 1500);
GivePlayerWeapon(playerid, 353, 1500);
GivePlayerWeapon(playerid, 355, 1500);
GivePlayerWeapon(playerid, 358, 1500);
GivePlayerWeapon(playerid, 331, 1);
printf("Player ID %d has spawned!",playerid);
return 1;
}
forward KillingSpree3(playerid);
forward KillingSpree10(playerid);
public KillingSpree3(playerid)
{
if(GetPlayerScore(playerid) >= 3)
{
new PlayerName[MAX_PLAYER_NAME],
string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "[Spree] %s is now on a killing spree!", PlayerName);
SendClientMessageToAll(COLOR_GREEN, string);
}
}
public KillingSpree10(playerid)
{
if(GetPlayerScore(playerid) >= 10)
{
new PlayerName[MAX_PLAYER_NAME],
string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "[Spree] %s has been awarded a Minigun! Stop him before he damages the whole place!", PlayerName);
SendClientMessageToAll(COLOR_GREEN, string);
GivePlayerWeapon(playerid, 362, 3000);
}
}

|
Use the ID's, not the model IDs. |


?
|
Originally Posted by Tigerbeast11
Okay thnx guys, but what about the second thing, it only sends the message to the player, why
![]() ![]() ?![]() |
forward KillingSpree3(playerid);
forward KillingSpree10(playerid);
public KillingSpree3(playerid)
{
if(GetPlayerScore(playerid) >= 3)
{
new PlayerName[MAX_PLAYER_NAME],
string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "[Spree] %s is now on a killing spree!", PlayerName);
}
SendClientMessageToAll(COLOR_GREEN, string);
}
public KillingSpree10(playerid)
{
if(GetPlayerScore(playerid) >= 10)
{
new PlayerName[MAX_PLAYER_NAME],
string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "[Spree] %s has been awarded a Minigun! Stop him before he damages the whole place!", PlayerName);
GivePlayerWeapon(playerid, 362, 3000);
}
SendClientMessageToAll(COLOR_GREEN, string);
}
printf("Player ID %d has spawned!",playerid);
new string[70], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
printf("Player %s [%d] has spawned!", pName, playerid);
|
Originally Posted by Tigerbeast11
Can some one help me fix my 2nd error plz!!!
![]() |
|
Originally Posted by Abernethy♥
Quote:
|