SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 05/02/2010, 07:01 PM   #1
(Jeff)
Huge Clucker
 
Join Date: Sep 2009
Posts: 242
Reputation: 0
Default Spawn help

public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
if(classid == 0) {
GameTextForPlayer(playerid,"CJ",300,6);
} else if(classid == 271) {
GameTextForPlayer(playerid,"Ryder",300,6);
} else if(classid == 121) {
GameTextForPlayer(playerid,"Citizen",300,6);
} else if(classid == 120) {
GameTextForPlayer(playerid,"Chinese",300,6);
} else if(classid == 16) {
GameTextForPlayer(playerid,"Airport Staff",300,6);
}

return 1;
}
public SetupPlayerForClassSelection(playerid)
{
SetPlayerPos(playerid, 1626.7664,-2290.1321,94.1270);
SetPlayerCameraPos(playerid, 1625.5867,-2288.2046,94.132;
SetPlayerCameraLookAt(playerid, 1626.7664,-2290.1321,94.1270);
}

Can only see the gametext for cj, the rest dont show :S
(Jeff) is offline  
Old 05/02/2010, 07:16 PM   #2
jasonnw666
Huge Clucker
 
Join Date: Apr 2009
Posts: 293
Reputation: 0
Default Re: Spawn help

try
public OnPlayerRequestClass(playerid, classid)
{
new string[128];
} else if(classid == 120) {
format(string, sizeof(string), "~y~> ~p~Chinese~y~< ~n~team!");
GameTextForPlayer(playerid,string,3500,6);
} else if(classid == 16) {
format(string, sizeof(string), "~y~> ~p~Airport Staff~y~< ~n~team!");
GameTextForPlayer(playerid,string,3500,6);
}

return 1;
}

and let me know if that work
jasonnw666 is offline  
Old 05/02/2010, 07:18 PM   #3
MadeMan
High-roller
 
MadeMan's Avatar
 
Join Date: Jun 2007
Posts: 3,488
Reputation: 256
Default Re: Spawn help

pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
    SetupPlayerForClassSelection(playerid);
    if(classid == 0) {
        GameTextForPlayer(playerid,"CJ",300,6);
    } else if(classid == 1) {
        GameTextForPlayer(playerid,"Ryder",300,6);
    } else if(classid == 2) {
        GameTextForPlayer(playerid,"Citizen",300,6);
    } else if(classid == 3) {
        GameTextForPlayer(playerid,"Chinese",300,6);
    } else if(classid == 4) {
        GameTextForPlayer(playerid,"Airport Staff",300,6);
    }
   
    return 1;
}

This is classid not skinid.
MadeMan is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Car Spawn script help with car spawn? cssbart Help Archive 5 18/03/2010 06:34 PM
[Help] Object/item ectra spawn on player spawn? No-Half-Measures Help Archive 3 21/01/2010 09:38 AM
Spawn/Death system - When a zombie kills a human he doesnt spawn as a zombie Julian2574 Help Archive 5 14/12/2009 05:16 PM
How to spawn inside vehicle using cmdtext!, then deleting vehicle after spawn??! DualDier12 Help Archive 17 20/10/2009 02:42 AM
spawn sec _ReloadeD_ Help Archive 7 18/09/2009 08:03 PM


All times are GMT. The time now is 03:12 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.