Posts: 805
Threads: 14
Joined: Jul 2013
Quote:
Originally Posted by iFarbod
Try to make simple modes with a few functions. For example:
pawn Код:
#include <a_samp>
main(){print("My First GM Loaded!");}
public OnGameModeInit() { AddPlayerClassEx(0, 105, 2488.562, -1666.865, 12.8757, 262.0, 24, 150, 29, 300, 4, 1); AddPlayerClassEx(1, 102, 2488.562, -1666.865, 12.8757, 262.0, 25, 150, 28, 500, 22, 150); return 1; }
public OnPlayerRequestClass(playerid, classid) { SetCameraBehindPlayer(playerid); switch(classid) { case 0: GameTextForPlayer(playerid, "~g~~h~~h~Grove Street Families", 3000, 4); case 1: GameTextForPlayer(playerid, "~p~Ballas", 3000, 4); } return 1; }
|
Yeap, I made something like that, but never knew of the SetPlayerClassEx, I've been using SetPlayerClass for a while now. Also thanks for the OnPlayerRequestClass >> 'GameTextForPlayer' never knew about that one as well!
I suppose I won't be needing much help now, I'll probably continue this Saturday. I'll let you know if I need any help iFarbod, you've been helpful to me