06.06.2010, 01:26
I need a simple script that gives a player a point after every kill they get.
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
return 1;
}
Originally Posted by [HiC
TheKiller ]
pawn Код:
|
AddPlayerClass(283,1709.1407,745.4641,12.6843,103.9314,27,50,31,150,35,10); // ARMY/COPS
AddPlayerClass(281,1709.1407,745.4641,12.6843,103.9314,27,50,31,150,35,10); // ARMY/COPS
AddPlayerClass(288,1709.1407,745.4641,12.6843,103.9314,27,50,31,150,35,10); // ARMY/COPS
AddPlayerClass(282,1709.1407,745.4641,12.6843,103.9314,27,50,31,150,35,10); // ARMY/COPS
AddPlayerClass(285,1709.1407,745.4641,12.6843,103.9314,27,50,31,150,35,10); // ARMY/COPS
AddPlayerClass(280,1709.1407,745.4641,12.6843,103.9314,27,50,31,150,35,10); // ARMY/COPS
AddPlayerClass(284,1709.1407,745.4641,12.6843,103.9314,27,50,31,150,35,10); // ARMY/COPS
AddPlayerClass(286,1709.1407,745.4641,12.6843,103.9314,27,50,31,150,35,10); // ARMY/COPS
AddPlayerClass(287,1709.1407,745.4641,12.6843,103.9314,27,50,31,150,35,10); // ARMY/COPS
public OnPlayerRequestClass(playerid, classid)
{
new s = GetPlayerSkin(playerid);
if(s == 283 || s == 281 || s == 288 || s == 285 || s == 280 || s == 284 || s == 286 || s == 287)
{
GameTextForPlayer(playerid, "~g~Containment Crew", 2000, 3);
}
return 1;
}
Originally Posted by [HiC
TheKiller ]
Because I don't know if they are all your classes, I'll do it like this: pawn Код:
|
public OnPlayerRequestClass(playerid, classid)
{
new s = GetPlayerSkin(playerid);
if(s == 283 || s == 281 || s == 288 || s == 285 || s == 280 || s == 284 || s == 286 || s == 287)
{
GameTextForPlayer(playerid, "~g~Containment Crew", 2000, 3);
}
return 1;
}
Originally Posted by Kar
does that put the game text above player's head?
|