23.11.2010, 02:31
Quote:
New question. ;]
My Pickup. I have a clothes (the little blue shirt :]) pickup next to a shed. The pickup is supposed to put you into class selection, to pick your skin you want to use. I have the location and all perfectly set up. However, when I go into it, it fudges up. Only gives me the 'SendClientMessage' Even though it's set up as so: Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == Clothes)SendClientMessage(playerid,COLOR_YELLOW, "Pick your skin and select Spawn."); ForceClassSelection(playerid); return 1; } |
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Clothes)SendClientMessage(playerid,COLOR_YELLOW, "Pick your skin and select Spawn.");
SetPlayerHealth(playerid,0);
ForceClassSelection(playerid);
return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Clothes) return /* i think idk =P*/ SendClientMessage(playerid,COLOR_YELLOW, "Pick your skin and select Spawn.");
{
SetPlayerHealth(playerid,0);
ForceClassSelection(playerid);
}
return 1;
}