public OnPlayerDeath(playerid, killerid, reason)
{
new playercash;
// if they ever return to class selection make them city
// select again first
gPlayerHasCitySelected[playerid] = 0;
if(killerid == INVALID_PLAYER_ID) {
ResetPlayerMoney(playerid);
} else {
playercash = GetPlayerMoney(playerid);
if(playercash > 0) {
GivePlayerMoney(killerid, playercash);
ResetPlayerMoney(playerid);
}
}
return 1;
}
CMD:markers(playerid)
{
new a = GetMaxPlayers();
for(new i; i < a; i++) SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00);
return 1;
}
így mert ami neked van elég hiányos stb és mód elejére ha nincs bent #include <zcmd.inc>
vagy ha nem akarod módba akkor teheted külön scripbe is
#include <a_samp>
#include <zcmd>
CMD:markers(playerid)
{
new a = GetMaxPlayers();
for(new i; i < a; i++) SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00);
return 1;
}