public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerPos(playerid, 1178.1852,-1323.3883,14.1076);
SendClientMessage(playerid, COLOR_PINK, "YOU GOT ****** UP");
GivePlayerMoney(playerid, -20);
return 1;
}
Hope it helped, im not a very good scripterpublic OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid, COLOR_PINK, "YOU GOT ****** UP");
GivePlayerMoney(playerid,-20);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, 1178.1852,-1323.3883,14.1076);
return 1;
}

|
//================================================== ================================================== ======== // OnPlayerSpawn //================================================== ================================================== ======== // This is when a player picks his character and spawns at a location! // You Can Like Right Now COpy The SendClientMessage you did there, IF you want. public OnPlayerSpawn(playerid) { SendClientMessage(playerid, COLOR_GREEN, "Here's The Key's To A RentCar Just Take One"); SpawnPlayerAtHouse(playerid); SetPlayerPos(playerid, 1178.5691,-1323.4521,14.1265); return 1; } //================================================== ================================================== ======== // OnPlayerDeath //================================================== ================================================== ======== // ok this is when a player dies and shit. if you want to you can make a player lose money when they die if // You Want that just delete the // before the Giveplayermoney // Edit the 50 to determine how much he/she loses if you want the killer to get money change Playerid to Killerid next to // Giveplayermoney public OnPlayerDeath(playerid, killerid, reason) { SetPlayerHealth(playerid, 100.0); SetPlayerInterior(playerid, 0); SetPlayerFacingAngle(playerid, 0); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~You Got Fucked Up", 10000, 1); PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0); SetPlayerPos(playerid, 1182.5638,-1323.5256,13.5790); return 1; } |
|
AddPlayerClass(158,1642.6589,-2239.5496,13.4958,180.2199,0,0,0,0,0,0); //civil skin AddPlayerClass(160,1642.6589,-2239.5496,13.4958,180.2199,0,0,0,0,0,0); //civil skin AddPlayerClass(204,1642.6589,-2239.5496,13.4958,180.2199,0,0,0,0,0,0); //civil skin AddPlayerClass(249,1642.6589,-2239.5496,13.4958,180.2199,0,0,0,0,0,0); //civil skin AddPlayerClass(264,1642.6589,-2239.5496,13.4958,180.2199,0,0,0,0,0,0); //civil skin AddPlayerClass(269,1642.6589,-2239.5496,13.4958,180.2199,0,0,0,0,0,0); //civil skin AddPlayerClass(270,1642.6589,-2239.5496,13.4958,180.2199,0,0,0,0,0,0); //civil skin AddPlayerClass(271,1642.6589,-2239.5496,13.4958,180.2199,0,0,0,0,0,0); //civil skin AddPlayerClass(141,1642.6589,-2239.5496,13.4958,180.2199,0,0,0,0,0,0); //civil skin |
its not really that bad
new Died[MAX_PLAYERS];
Died[playerid] = 1;
if(Died[playerid] == 1)
{
SetPlayerPos(playerid, // Cords you want );
SendClientMessage(playerid, COLOR, "Text");
Died[playerid] = 0;
return 1;
}

new Died[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid, COLOR_GREEN, "Here's The Key's To A RentCar Just Take One");
SpawnPlayerAtHouse(playerid);
SetPlayerPos(playerid, 1178.5691,-1323.4521,14.1265);
if(Died[playerid] == 1)
{
SetPlayerInterior(playerid, 0); // In case they died in an Interior
SetPlayerFacingAngle(playerid, 0);
SetPlayerPos(playerid, 1182.5638,-1323.5256,13.5790);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~You Got Fucked Up", 10000, 1);
Died[playerid] = 0;
return 1;
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
Died[playerid] = 1;
PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
return 1;
}
//On top of the script
enum player_enum
{
bool:dead
}
new player[MAX_PLAYER_NAME][player_enum];
//OnPlayerDeath
public OnPlayerDeath(playerid, killerid, reason)
{
player[playerid][dead] = true;
return 1;
}
//OnPlayerSpawn
public OnPlayerSpawn(playerid)
{
if (player[playerid][dead]) {
SetPlayerPos(playerid,1178.1852,-1323.3883,14.1076);
SendClientMessage(playerid, COLOR_PINK, "YOU GOT ****** UP");
GivePlayerMoney(playerid, -20);
}
return 1;
}